﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;

namespace WMI.NET.CIM
{
    /// <summary>
    /// The CIM_AssociateMemory class associates installed or associated memory, such as cache memory with a logical device. 
    /// </summary>
    public class CIM_AssociatedMemory : CIM_Dependency
    {

        private CIM_Memory _Antecedent;
        private CIM_LogicalDevice _Dependent;

        /// <summary>
        /// Reference to the memory installed on, or associated with, a device.
        /// </summary>
        public new CIM_Memory Antecedent { get { return _Antecedent; } }

        /// <summary>
        /// Reference to the logical device.
        /// </summary>
        public new CIM_LogicalDevice Dependent { get { return _Dependent; } }


        /// <summary>
        /// 
        /// </summary>
        /// <param name="mbo"></param>
        public CIM_AssociatedMemory(ManagementBaseObject mbo) //TODO fix
            : base(mbo)
        {
            _Antecedent = new CIM_Memory(mbo);
            _Dependent = new CIM_LogicalDevice(mbo);
        }

    }
}
